-----------------------------------
--	[Command name]: godmode
--	[Author      ]: bluekirby0
--	[Description ]: Grants the user several special abilities that may aid in testing, or just plain showing off.
-----------------------------------

-----------------------------------
-- Action
-----------------------------------

function onTrigger(player,target)
	
	
	

	if (player:getVar("GodMode") == 0) then
		player:setVar("GodMode",1)
			
			
			player:addStatusEffect(EFFECT_MAX_HP_BOOST, 1000, 0, 0);
			player:addStatusEffect(EFFECT_MAX_MP_BOOST, 1000, 0, 0);
			player:addStatusEffect(EFFECT_REGAIN,100,1,0);
			player:addStatusEffect(EFFECT_REFRESH, 99, 0, 0);
			player:addStatusEffect(EFFECT_REGEN, 99, 0, 0);
			player:addStatusEffect(EFFECT_MIGHTY_STRIKES,1,0,0);
			player:addStatusEffect(EFFECT_HUNDRED_FISTS,1,0,0);
			player:addStatusEffect(EFFECT_CHAINSPELL,1,0,0);
			player:addStatusEffect(EFFECT_MANAFONT,1,0,0);
			player:addMod(MOD_RACC, 200);
			player:addMod(MOD_RATT, 500);
			player:addMod(MOD_ACC, 200);
			player:addMod(MOD_ATT, 500);
			player:addMod(MOD_MATT, 500);
			player:addMod(MOD_MACC, 200);
			player:addMod(MOD_RDEF, 500);
			player:addMod(MOD_DEF, 500);
			player:addMod(MOD_MDEF, 500);
			
			
	else
		player:setVar("GodMode",0)
			player:delStatusEffect(EFFECT_MAX_HP_BOOST);
			player:delStatusEffect(EFFECT_MAX_MP_BOOST);
			player:delStatusEffect(EFFECT_HUNDRED_FISTS);
		    player:delStatusEffect(EFFECT_MIGHTY_STRIKES);
			player:delStatusEffect(EFFECT_CHAINSPELL);	
			player:delStatusEffect(EFFECT_REGAIN);
			player:delStatusEffect(EFFECT_REFRESH);
			player:delStatusEffect(EFFECT_REGEN);
			player:delStatusEffect(EFFECT_MANAFONT);
			player:delMod(MOD_RACC, 200); 
			player:delMod(MOD_RATT, 500);
			player:delMod(MOD_ACC, 200);
			player:delMod(MOD_ATT, 500);
			player:delMod(MOD_MATT, 500);
			player:delMod(MOD_MACC, 200);
			player:delMod(MOD_RDEF, 500);
			player:delMod(MOD_DEF, 500);
			player:delMod(MOD_MDEF, 500);
			
	end
end;
